import { Injectable } from '@nestjs/common';
import * as svgCaptcha from 'svg-captcha';
@Injectable()
export class CaptchaService {
  generateCaptcha(): { data: string; text: string } {
    const captcha = svgCaptcha.create();
    return {
      data: captcha.data,
      text: captcha.text,
    };
  }
}
